#!/usr/bin/expect
spawn scp -P 5692 ./dist/dist.zip jieerxun@118.242.0.43:/home/jieerxun/
expect {
    "*assword" {set timeout 30; send "\$jieer.com\r";}
	"yes/no" {send "yes\r"; exp_continue;}
}
spawn ssh -p 5692 jieerxun@118.242.0.43
expect {
	"*assword" {set timeout 30; send "\$jieer.com\r";}
	"yes/no" {send "yes\r"; exp_continue;}
}
send "cd /home/jieerxun/\r"
send "ls\r"
send "su root\r"
send "echo wao@123\r"
interact
